We need to treat initial creation different from setting with regards to
authorOwen Taylor <otaylor@redhat.com>
Mon, 5 Jun 2000 15:54:32 +0000 (15:54 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 5 Jun 2000 15:54:32 +0000 (15:54 +0000)
Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>

* gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
to treat initial creation different from setting with
regards to the graphics-exposures parameter, so add a parameter
indicating whether this is initial or not.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkgc-x11.c

index 1c93d51544306ff4e4969a40cd49b7a46419f1dc..c589306247cf2e236ee237b9e6e735ac712bca65 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
+       to treat initial creation different from setting with 
+       regards to the graphics-exposures parameter, so add a parameter
+       indicating whether this is initial or not.
+
 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
index 1c93d51544306ff4e4969a40cd49b7a46419f1dc..c589306247cf2e236ee237b9e6e735ac712bca65 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
+       to treat initial creation different from setting with 
+       regards to the graphics-exposures parameter, so add a parameter
+       indicating whether this is initial or not.
+
 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
index 1c93d51544306ff4e4969a40cd49b7a46419f1dc..c589306247cf2e236ee237b9e6e735ac712bca65 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
+       to treat initial creation different from setting with 
+       regards to the graphics-exposures parameter, so add a parameter
+       indicating whether this is initial or not.
+
 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
index 1c93d51544306ff4e4969a40cd49b7a46419f1dc..c589306247cf2e236ee237b9e6e735ac712bca65 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
+       to treat initial creation different from setting with 
+       regards to the graphics-exposures parameter, so add a parameter
+       indicating whether this is initial or not.
+
 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
index 1c93d51544306ff4e4969a40cd49b7a46419f1dc..c589306247cf2e236ee237b9e6e735ac712bca65 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
+       to treat initial creation different from setting with 
+       regards to the graphics-exposures parameter, so add a parameter
+       indicating whether this is initial or not.
+
 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
index 1c93d51544306ff4e4969a40cd49b7a46419f1dc..c589306247cf2e236ee237b9e6e735ac712bca65 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
+       to treat initial creation different from setting with 
+       regards to the graphics-exposures parameter, so add a parameter
+       indicating whether this is initial or not.
+
 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
index 1c93d51544306ff4e4969a40cd49b7a46419f1dc..c589306247cf2e236ee237b9e6e735ac712bca65 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
+       to treat initial creation different from setting with 
+       regards to the graphics-exposures parameter, so add a parameter
+       indicating whether this is initial or not.
+
 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
index 16deedc2153ff3e1f63e427954ebaa5ac5413c58..01266650ddb2612d135f6f98ea0444ae1a80e589 100644 (file)
@@ -10,7 +10,8 @@ typedef enum {
 static void gdk_x11_gc_values_to_xvalues (GdkGCValues    *values,
                                          GdkGCValuesMask mask,
                                          XGCValues      *xvalues,
-                                         unsigned long  *xvalues_mask);
+                                         unsigned long  *xvalues_mask,
+                                         gboolean        initial);
      
 static void gdk_x11_gc_destroy    (GdkGC           *gc);
 static void gdk_x11_gc_get_values (GdkGC           *gc,
@@ -72,7 +73,7 @@ _gdk_x11_gc_new (GdkDrawable      *drawable,
   xvalues.graphics_exposures = True;
   xvalues_mask = GCFunction | GCFillStyle | GCArcMode | GCSubwindowMode | GCGraphicsExposures;
 
-  gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask);
+  gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask, TRUE);
   
   data->xgc = XCreateGC (GDK_GC_XDISPLAY (gc),
                         GDK_DRAWABLE_XID (drawable),
@@ -311,7 +312,7 @@ gdk_x11_gc_set_values (GdkGC           *gc,
        }
     }
 
-  gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask);
+  gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask, FALSE);
 
   XChangeGC (GDK_GC_XDISPLAY (gc),
             GDK_GC_XGC (gc),
@@ -336,7 +337,8 @@ static void
 gdk_x11_gc_values_to_xvalues (GdkGCValues    *values,
                              GdkGCValuesMask mask,
                              XGCValues      *xvalues,
-                             unsigned long  *xvalues_mask)
+                             unsigned long  *xvalues_mask,
+                             gboolean        initial)
 {
   if (mask & GDK_GC_FOREGROUND)
     {
@@ -479,10 +481,15 @@ gdk_x11_gc_values_to_xvalues (GdkGCValues    *values,
     }
 
   if (mask & GDK_GC_EXPOSURES)
-    xvalues->graphics_exposures = values->graphics_exposures;
-  else
-    xvalues->graphics_exposures = False;
-  *xvalues_mask |= GCGraphicsExposures;
+    {
+      xvalues->graphics_exposures = values->graphics_exposures;
+      *xvalues_mask |= GCGraphicsExposures;
+    }
+  else if (initial)
+    {
+      xvalues->graphics_exposures = False;
+      *xvalues_mask |= GCGraphicsExposures;
+    }
 
   if (mask & GDK_GC_LINE_WIDTH)
     {